<template>
	<div id="app">
		<my-head></my-head>
		<keep-alive>
			<router-view v-if="$route.meta.keepAlive">
				<!-- 这里是会被缓存的视图组件，比如 page1,page2 -->
			</router-view>
		</keep-alive>

		<router-view v-if="!$route.meta.keepAlive">
			<!-- 这里是不被缓存的视图组件，比如 page3 -->
		</router-view>
		
	</div>
</template>

<script>
	import myHead from './components/Myheader'
	export default {
		name: 'App',
		components: {
			myHead
		}
	}
</script>

<style>
	#app {
		font-family: "微软雅黑";
		color: #282828;
		background: #fff;
	}
	
</style>